<?php

$loader = new \Phalcon\Loader();

/**
 * We're a registering a set of directories taken from the configuration file
 */

$loader->registerNamespaces(array(
    'Hdphim\Library' => __DIR__ . '/../library/',
    'Hdphim\Library\Acl' => __DIR__ . '/../library/Acl/',
    'Hdphim\Library\Auth' => __DIR__ . '/../library/Auth/',
    'Hdphim\Library\Controllers' => __DIR__ . '/../library/Controllers/',
));

$loader->registerDirs(
        array(
            __DIR__ . '/../library/',
        ));

$loader->register();

// Use composer autoloader to load vendor classes
require_once __DIR__ . '/../../vendor/autoload.php';